import 'babel-polyfill'
import Vue from 'vue'
import axios from 'axios'
import ElementUI from 'element-ui';

import store from './store';

import App from './App.vue'
import 'element-ui/lib/theme-chalk/index.css';
import EnvConf from './config/envConf';
import HttpUtil from './utils/httpUtil';

Vue.use(ElementUI);

// 全局axios配置
const urlConfig = EnvConf[process.env.NODE_ENV];

axios.defaults.baseURL = urlConfig['baseUrl'] + ":" + urlConfig['port'];
axios.defaults.timeout = 5000;

HttpUtil.init();

Vue.config.productionTip = false;

Vue.prototype.actionList = [];

new Vue({
  render: h => h(App),
  store
}).$mount('#app');
